import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:niuniu/common/constant/AppColor.dart';
import 'package:niuniu/pages/my/person_info/controller.dart';
import 'package:get/get.dart';

class PersonInfoPage extends GetView<PersonInfoController> {
  const PersonInfoPage({Key? key}) : super(key: key);

  // 主视图
  Widget buildView() {
    return Container(
      padding: EdgeInsets.only(left: 15.w, right: 15.w),
      child: Center(child: Text("PersonInfo示例", style: TextStyle(color: AppColor.firstFontColor))),
    );
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<PersonInfoController>(
      init: PersonInfoController(),
      id: "person-info-page",
      builder: (_) {
        return Scaffold(
          appBar: AppBar(title: const Text("个人信息")),
          body: SafeArea(child: Container(
            margin: EdgeInsets.only(top: 10.h, bottom: 10.h),
            child: buildView(),
          )),
        );
      },
    );
  }
}
